import os

def delete_ds_store(path):
    for root, dirs, files in os.walk(path):
        for filename in files:
            if filename == ".DS_Store":
                os.remove(os.path.join(root, filename))

delete_ds_store("dataset")